﻿
using B.S.GridManage.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace B.S.GridManage.Infrastructure
{
    /// <summary>
    /// 数据库
    /// </summary>
    public class ScDbContext : DbContext
    {
        public ScDbContext(DbContextOptions options) : base(options)
        {
        }
        
        /// <summary>
        /// 区域实体数据集
        /// </summary>
        public DbSet<AreaModel> AreaModels { get; set; }
        /// <summary>
        /// 物理网格实体数据集
        /// </summary>
        public DbSet<PhysicallGridModel> PhysicallGridModels { get; set; }
        public DbSet<LogicalGridModel> LogicalGridModels { get; set; } 
        /// <summary>
        /// 单元网格数据集
        /// </summary>
        public DbSet<UnitGirdModel> UnitGirdModels { get; set; } 
        /// <summary>
        /// 责任网格数据集
        /// </summary>
        public DbSet<DutyGridModel> DutyGridModels { get; set; } 
        /// <summary>
        /// 映射网格队伍
        /// </summary>
        public DbSet<GridTeamModel> GridTeamModels { get; set; } 




    }
}
